package com.zoe.app.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author Zoe.Zhang
 * @date 2021/10/28
 * @description 公共事件 还有spring的事务事件https://www.jianshu.com/p/6f9cc1384cdf
 */
public class CommonEvent extends ApplicationEvent {
    private String message;

    public CommonEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage() {
        return this.message;
    }
}
